package cn.zebra.dev.admin.module.delivery.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotEmpty;
import java.util.Collection;

/**
 * @author runnable@sina.cn
 */
@Getter
@Setter
@ToString
public class DeliveryVO {

    @ApiModelProperty("计费方式(0:按件数;1:按重量)")
    private Integer deliveryType;

    @ApiModelProperty("模板名称")
    private String deliveryName;

    @ApiModelProperty("排序(数字越小越靠前)")
    private Long sort;

    @NotEmpty(message = "请添加配送区域")
    private Collection<DeliveryItemVO> itemList;
}
